home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr28 / inityme.zip / INITYME.HLP < prev   
Text File  |  1993-06-15  |  6KB  |  154 lines

  1. Computer Tyme IniTyme * Copyright 1993 by Marc Perkel
  2. All Rights Reserved * Version 1.0 * Release Date: 06-15-92
  3.  
  4. Computer Tyme * 411 North Sherman, Suite 300 * Springfield Mo. 65802
  5. (800) 548-5353 Sales * (417) 866-1222 Voice * (417) 866-1665 Data
  6.  
  7. IniTyme is a Windows *.INI file manipulator. It is designed to assist the
  8. network administrator who has to maintain INI files for many users.
  9.  
  10. USAGE: INITYME ChangeFile IniFile
  11.  
  12. Example:
  13.   INITYME CHANGE.INI SYSTEM.INI
  14.  
  15. In the above example CHANGE.INI is the control file that will control the
  16. changes that will be written to the target file SYSTEM.INI. The ChangeFile
  17. is formatted like an INI file. A sample changefile might look like this:
  18.  
  19.     ; CHANGE.INI : A sample changefile for the IniTyme Program.
  20.  
  21.     subst 'C:\WINDOWS\PM4\' 'W:\PM4'
  22.  
  23.     [boot]
  24.     del sound.drv=
  25.  
  26.     del [keyboard]
  27.  
  28.     [386Enh]
  29.     Paging=1
  30.     Device=mydev.386
  31.     foo=bar
  32.     ADD TestMode=3
  33.     CHANGE mydevice=mydriver.386
  34.  
  35.     [fonts]
  36.     subst 'V:\' 'P:\WINDOWS\'
  37.  
  38. Any line that starts with the semi-colon is a comment and will not be
  39. processed.
  40.  
  41. The SUBST command is used to replace strings within an INI file. It can be
  42. used in two fashions either Globally throughout the file or locally within
  43. a group. In the above example it is used both ways. Identifying groups is
  44. done by using square brackets just like in an INI file.
  45.  
  46. Putting the line SUBST 'C:\WINDOWS\PM4\' 'W:\PM4' outside a group header
  47. will cause the path string 'C:\WINDOWS\PM4\' to be globally replaced
  48. throughout the file with 'W:\PM4'. In the last line of the above example the
  49. SUBST 'V:\' 'P:\WINDOWS\' command will replace only those strings that match
  50. in the group [fonts].
  51.  
  52. The DEL command is used to remove unwanted lines from the target INI file.
  53. In the previous example any lines starting with the string SOUND.DRV= will
  54. be deleted from the [BOOT] group. The DEL command can also be used to remove
  55. entire groups as illustrated in the example line DEL [KEYBOARD].
  56.  
  57. Adding and updating lines is done by listing the new lines as you wish them
  58. to appear. In the example there is a line in the [386ENH] group that reads
  59. PAGING=1. If the target INI files does not contain a [386ENH] group it will
  60. be added, if that group does not contain a PAGING=1 line it will be added to
  61. the group. If a line in the [386ENH] group already exists that sets PAGING=
  62. set to another value it will be replaced with the line in the changefile.
  63. The word DEVICE= is a special case and it is automatically added unless the
  64. whole line matches something that's already there.
  65.  
  66. The ADD command works similarly except that if there is a pre-existing
  67. matching line it will not be overwritten. There is also a CHANGE command,
  68. this command will update an existing matching line, but will not add the
  69. line if it does not pre-exist.
  70.  
  71. INITYME also has special provisions for handling the [GROUPS] section on the
  72. PROGMAN.INI. This section numbers the groups that are referenced. INITYME
  73. will scan the groups listed and determine the first available group number
  74. when it is adding to the [GROUPS] group.
  75.  
  76. To illustrate, if the PROGMAN.INI files group section reads as follows:
  77.  
  78.     [Groups]
  79.     Group1=H:\WINDOWS\MAIN.GRP
  80.     Group2=H:\WINDOWS\ACCESSOR.GRP
  81.     Group4=H:\WINDOWS\STARTUP.GRP
  82.     Group5=H:\WINDOWS\BP7.GRP
  83.     Group6=H:\WINDOWS\ALDUS.GRP
  84.     Group7=F:\HOME\MARC\WINDOWS\WORDFORW.GRP
  85.     Group8=F:\HOME\MARC\WINDOWS\MICROSOF.GRP
  86.     Group3=F:\HOME\MARC\WINDOWS\EDOS.GRP
  87.  
  88.  
  89. and your ChangeFile contains:
  90.  
  91.     [Groups]
  92.     DEL group=BP7.GRP
  93.     Group=MAIN.GRP
  94.     Group=MYGROUP.GRP
  95.     DEL group=EDOS.GRP
  96.     Group=Z:\SYSTEM\TEST.GRP
  97.     Group=MASTER.GRP
  98.  
  99. After executing IniTyme your PROGMAN.INI group section would now read:
  100.  
  101.     [Groups]
  102.     Group1=MAIN.GRP
  103.     Group2=H:\WINDOWS\ACCESSOR.GRP
  104.     Group4=H:\WINDOWS\STARTUP.GRP
  105.     Group6=H:\WINDOWS\ALDUS.GRP
  106.     Group7=F:\HOME\MARC\WINDOWS\WORDFORW.GRP
  107.     Group8=F:\HOME\MARC\WINDOWS\MICROSOF.GRP
  108.     Group5=MYGROUP.GRP
  109.     Group3=Z:\SYSTEM\TEST.GRP
  110.     Group9=MASTER.GRP
  111.  
  112.  
  113. Whenever INITYME runs it creates a backup of the original file with a *.BNI
  114. extension. If you decide you don't like the changes you've made you can
  115. execute a 1 generation restore with the command:
  116.  
  117.      INITYME RESTORE SYSTEM.INI
  118.  
  119. This will delete the current SYSTEM.INI file and rename the SYSTEM.BNI file
  120. to SYSTEM.INI. If a matching BNI file is not present then the restore
  121. command does not do anything.
  122.  
  123. If by chance you are in a situtation where murphy has tried to make your day
  124. really bad and you've screwed up your INI files royally, be sure to remember
  125. the SALVAGE command from netware. But nothing, not even salvage, is an
  126. acceptable substitute for a current set of backups. One suggestion might be
  127. to use PKZIP to ZIP up a set of your pre-modified INI files. This gives you
  128. the opportunity to play without risk. Nothing beats backups!
  129.  
  130. IniTyme can be used to update many INI file in bulk by creating a ListFile
  131. contains a list of INI files. Then simply provide IniTyme with the filename
  132. of the list file instead of a specific INI file. The syntax of a list file
  133. should be something like:
  134.  
  135.                      \home\phil\windows\system.ini
  136.                      \home\marc\windows\system.ini
  137.                      ...etc...
  138.  
  139. You can also pipe a list of files to IniTyme as follows:
  140.  
  141.   WHEREIS SYSTEM.INI|INITYME CHANGE.INI
  142.  
  143.  
  144. ==> WE WANT YOUR INPUT
  145.  
  146. If you like this program and you can think of more features that it needs,
  147. give me a call and I will probably add them.
  148.  
  149. IniTyme is licensed for $95 per fileserver. $995 unlimited servers.
  150.  
  151. IniTyme is written in the MarxMenu network system language. IniTyme is
  152. included free with the Network Survival Kit along with source code allowing
  153. you to add your own features to the program.
  154.